package com.haiyangwang1.lesson7.ex1;

public class SystemDemo {
    //数组的复制
    public static void arrayCodeTest() {
        int[] a = {2, 4, 6, 8, 10, 12};
        int[] b = new int[7];
        int i = 4;
        String a1="";
        if (i <= b.length) {
            System.arraycopy(a, 2, b, 3, 4);
            for (int o : b) {
                System.out.println(o);
            }
        }
    }

    public static void main(String[] args) {
        SystemDemo.arrayCodeTest();
    }
}
